package com.aprivate.kn.ratingsystem.util;

import android.content.Context;

public class CommonUtil {
    public static int dp2Px(Context context, int dp) {
        if (context == null) {
            return 0;
        }
        return (int) (dp * context.getResources().getDisplayMetrics().density);
    }
}
